package snl;


import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class Game{
	public static void main(String[] a) {
		createAndShowGUI(); 
    }

    private static void createAndShowGUI() {
        JFrame f = new JFrame("Snakes & Ladders");
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        Container basePane = f.getContentPane();
        basePane.add(new BoardPanel(), BorderLayout.CENTER);

        JPanel playerPanel = new JPanel();
        playerPanel.setBackground(GameUtility.LIGHT_BROWN);
        playerPanel.setPreferredSize(new Dimension(200, 640));
        basePane.add(playerPanel, BorderLayout.LINE_END);
        f.pack();
        f.setVisible(true);
    }
	
}
